package com.rd.student.ruanjian.class4.zhangrui.day8_1;

import java.util.Arrays;

public class ArrTest {
    public static void main(String[] args) {
       int[] arr1={1,3,5,7,9,11,13,15,17,0};
       int[]arr2=new int[10];
       System.arraycopy(arr1,0,arr2,0,5);
        for (int i = 0; i < arr2.length; i++) {
            if (arr2[i]==9){
                arr2[i+1]=10;
                break;
            }
        }
       System.arraycopy(arr1,5,arr2,6,4);
        System.out.println(Arrays.toString(arr2));

    }
}
